const getters = {
  sidebar: state => state.app.sidebar, // 引用了app模块的属性
  device: state => state.app.device,
  token: state => state.user.token, // 引入了user模块的属性
  avatar: state => state.user.avatar,
  name: state => state.user.name
}
// getter用来便捷开发
export default getters
